package com.bj58.mis.apm.apm.scf.module;

import javax.persistence.*;

/**
 * @author zhangyu84
 * @create 2018/7/5
 * @since 1.0.0
 */
@Entity
@Table(name = "roc_auth_cube")
public class RocAuthCube {
    public RocAuthCube() {
    }

    public RocAuthCube( String owner, String ownerRealName, String cubeId, String aaCh, String projectId, String projectName,String  lastModified,String aa,
                        String creator,String creatorName,String cycle,String modifier,String modifierName) {
        this.owner = owner;
        this.ownerRealName = ownerRealName;
        this.cubeId = cubeId;
        this.aaCh = aaCh;
        this.projectId = projectId;
        this.projectName = projectName;
        this.lastModified= lastModified;
        this.aa=aa;
        this.creator = creator;
        this.creatorName = creatorName;
        this.cycle = cycle;
        this.modifier = modifier;
        this.modifierName = modifierName;
    }

    public RocAuthCube( String owner, String ownerRealName, String cubeId, String aaCh, String projectId, String projectName,String  lastModified,String aa) {
        this.owner = owner;
        this.ownerRealName = ownerRealName;
        this.cubeId = cubeId;
        this.aaCh = aaCh;
        this.projectId = projectId;
        this.projectName = projectName;
        this.lastModified= lastModified;
        this.aa=aa;
    }

    private long id;
    private String owner;
    private String ownerRealName;
    private String cubeId;
   /* private String cubeName;*/
    private String projectId;
    private String projectName;
    private String createTime;
    private String lastModified;
    private String aa;
    private String aaCh;
    private String creator;
    private String creatorName;
    private String cycle;
    private String modifier;
    private String modifierName;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "owner")
    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    @Column(name = "owner_real_name")
    public String getOwnerRealName() {
        return ownerRealName;
    }

    public void setOwnerRealName(String ownerRealName) {
        this.ownerRealName = ownerRealName;
    }

    @Column(name = "cube_id")
    public String getCubeId() {
        return cubeId;
    }

    public void setCubeId(String cubeId) {
        this.cubeId = cubeId;
    }

  /*  @Column(name = "cube_name")
    public String getCubeName() {
        return cubeName;
    }

    public void setCubeName(String cubeName) {
        cubeName = cubeName;
    }*/

    @Column(name = "project_id")
    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    @Column(name = "project_name")
    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Column(name = "create_time")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Column(name = "last_modified")
    public String getLastModified() {
        return lastModified;
    }

    public void setLastModified(String lastModified) {
        this.lastModified = lastModified;
    }

    @Column(name = "cube_name")
    public String getAa() {
        return aa;
    }

    public void setAa(String aa) {
        this.aa = aa;
    }

    @Column(name = "cube_name_ch")
    public String getAaCh() {
        return aaCh;
    }

    public void setAaCh(String aaCh) {
        this.aaCh = aaCh;
    }

    @Column(name = "creator")
    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Column(name = "creator_name")
    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    @Column(name = "cycle")
    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    @Column(name = "modifier")
    public String getModifier() {
        return modifier;
    }
    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    @Column(name = "modifier_name")
    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    @Override
    public String toString() {
        return "AuthCube[id=" + this.id + ", owner='" + this.owner + '\'' + ", ownerRealName='" + this.ownerRealName + '\'' + ", cubeId='" + this.cubeId + '\'' +/* ", cubeName='" + this.cubeName + '\'' + */", projectId='" + this.projectId + '\'' + ", projectName='" + this.projectName + ", createTime='" + this.createTime + '\''+ ", lastModified='" + this.lastModified + '\''+ ", aa='" + this.aa + '\''+ ']';
    }
}
